from dataclasses import dataclass

from pydantic import BaseModel, Field

@dataclass
class RunInfo(BaseModel):
    task_name:str = Field(default="", description='任务名称')
    keyword:bool = Field(default=True, description="是否启用关键词搜索")
    shop:bool = Field(default=True, description="是否启用店铺列表")
    distinct:bool = Field(default=True, description="是否去重")
    history_distinct:bool = Field(default=True, description="是否对历史结果进行去重")
    num:int = Field(default=10, description="爬取结果数量")
